import multiprocessing
import time
def test():
    for i in range(10):
        print(f'test1....{i}.....')
        time.sleep(1)


def test1():
    for i in range(10):
        print(f'test2...{i} .....')
        time.sleep(1)


def main():
    p1=multiprocessing.Process(target=test)
    p2=multiprocessing.Process(target=test1)
    p1.start()
    p2.start()


if __name__ == '__main__':
    main()